package com.grandtech.insurance.domain;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 
 * 种植信息表
 */
public class DbZzxx implements Serializable {
    /**
     * 主键id
     */
    private String id;

    /**
     * 用户证件号
     */
    private String idcode;

    /**
     * 种植类型
     */
    private String zzdm;

    /**
     * 种植作物名称
     */
    private String zzmc;

    /**
     * 地块面积
     */
    private BigDecimal mj;

    /**
     * 年份
     */
    private String nf;

    /**
     * 项目编码
     */
    private String xmbm;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIdcode() {
        return idcode;
    }

    public void setIdcode(String idcode) {
        this.idcode = idcode;
    }

    public String getZzdm() {
        return zzdm;
    }

    public void setZzdm(String zzdm) {
        this.zzdm = zzdm;
    }

    public String getZzmc() {
        return zzmc;
    }

    public void setZzmc(String zzmc) {
        this.zzmc = zzmc;
    }

    public BigDecimal getMj() {
        return mj;
    }

    public void setMj(BigDecimal mj) {
        this.mj = mj;
    }

    public String getNf() {
        return nf;
    }

    public void setNf(String nf) {
        this.nf = nf;
    }

    public String getXmbm() {
        return xmbm;
    }

    public void setXmbm(String xmbm) {
        this.xmbm = xmbm;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DbZzxx other = (DbZzxx) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getIdcode() == null ? other.getIdcode() == null : this.getIdcode().equals(other.getIdcode()))
            && (this.getZzdm() == null ? other.getZzdm() == null : this.getZzdm().equals(other.getZzdm()))
            && (this.getZzmc() == null ? other.getZzmc() == null : this.getZzmc().equals(other.getZzmc()))
            && (this.getMj() == null ? other.getMj() == null : this.getMj().equals(other.getMj()))
            && (this.getNf() == null ? other.getNf() == null : this.getNf().equals(other.getNf()))
            && (this.getXmbm() == null ? other.getXmbm() == null : this.getXmbm().equals(other.getXmbm()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getIdcode() == null) ? 0 : getIdcode().hashCode());
        result = prime * result + ((getZzdm() == null) ? 0 : getZzdm().hashCode());
        result = prime * result + ((getZzmc() == null) ? 0 : getZzmc().hashCode());
        result = prime * result + ((getMj() == null) ? 0 : getMj().hashCode());
        result = prime * result + ((getNf() == null) ? 0 : getNf().hashCode());
        result = prime * result + ((getXmbm() == null) ? 0 : getXmbm().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", idcode=").append(idcode);
        sb.append(", zzdm=").append(zzdm);
        sb.append(", zzmc=").append(zzmc);
        sb.append(", mj=").append(mj);
        sb.append(", nf=").append(nf);
        sb.append(", xmbm=").append(xmbm);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}